<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<base>
	<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />	
	<meta name="description" content="<?php echo $settings->getMETAdescription(); ?>" />
        <meta name="keywords" content="<?php echo $settings->getMETAkeywords(); ?>" /> 
	<title><?php echo $settings->getSiteTitle(); ?> - Main</title>
	
	<style type="text/css">
		@import url("css/style.css");
		@import url("css/forms.css");
		@import url("css/forms-btn.css");
		@import url("css/menu.css");
		@import url('css/style_text.css');
		@import url("css/datatables.css");
		@import url("css/fullcalendar.css");
		@import url("css/pirebox.css");
		@import url("css/modalwindow.css");
		@import url("css/statics.css");
		@import url("css/tabs-toggle.css");
		@import url("css/system-message.css");
		@import url("css/tooltip.css");
		@import url("css/wizard.css");
		@import url("css/handheld.css");
		@import url("css/custom.css");
	</style>
	<!--[if lte IE 8]>
		<script type="text/javascript" src="js/excanvas.min.js"></script>
	<![endif]-->
	<script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>
	<script type="text/javascript" src="js/jquery.backgroundPosition.js"></script>
	<script type="text/javascript" src="js/jquery.placeholder.min.js"></script>
	<script type="text/javascript" src="js/jquery.ui.1.8.17.js"></script>
	<script type="text/javascript" src="js/jquery.ui.select.js"></script>
	<script type="text/javascript" src="js/jquery.ui.spinner.js"></script>
	<script type="text/javascript" src="js/superfish.js"></script>
	<script type="text/javascript" src="js/supersubs.js"></script>
	<script type="text/javascript" src="js/jquery.datatables.js"></script>
	<script type="text/javascript" src="js/fullcalendar.min.js"></script>
	<script type="text/javascript" src="js/jquery.smartwizard-2.0.min.js"></script>
	<script type="text/javascript" src="js/pirobox.extended.min.js"></script>
	<script type="text/javascript" src="js/jquery.tipsy.js"></script>
	<script type="text/javascript" src="js/jquery.elastic.source.js"></script>
	<script type="text/javascript" src="js/jquery.jBreadCrumb.1.1.js"></script>
	<script type="text/javascript" src="js/jquery.customInput.js"></script>
	<script type="text/javascript" src="js/jquery.validate.min.js"></script>
	<script type="text/javascript" src="js/jquery.metadata.js"></script>
	<script type="text/javascript" src="js/jquery.filestyle.mini.js"></script>
	<script type="text/javascript" src="js/jquery.filter.input.js"></script>
	<script type="text/javascript" src="js/jquery.flot.js"></script>
	<script type="text/javascript" src="js/jquery.flot.pie.min.js"></script>
	<script type="text/javascript" src="js/jquery.flot.resize.min.js"></script>
	<script type="text/javascript" src="js/jquery.graphtable-0.2.js"></script>
	<script type="text/javascript" src="js/jquery.wysiwyg.js"></script>
	<script type="text/javascript" src="js/controls/wysiwyg.image.js"></script>
	<script type="text/javascript" src="js/controls/wysiwyg.link.js"></script>
	<script type="text/javascript" src="js/controls/wysiwyg.table.js"></script>
	<script type="text/javascript" src="js/plugins/wysiwyg.rmFormat.js"></script>
	<script type="text/javascript" src="js/costum.js"></script>
	<script type="text/javascript" src="js/thickbox.js"></script>
        <script type="text/javascript" src="js/ajax.js"></script>
	<link href="css/thickbox.css" rel="stylesheet" type="text/css" />
	
</head>

<body>

<div id="wrapper">
	<div id="container">
	
		    <div id="top">
			<h1 id="logo"><a href="index.php"></a></h1>
						<div id="menu">
				<ul> 
				        <?php
				        $currentFile = $_SERVER["PHP_SELF"];
                                        $parts = Explode('/', $currentFile);
                                        ?>
                                        <?php if($parts[count($parts) - 1] == 'index.php') { ?>
					<li class="current"><a href="index.php">Home</a></li>
					<?php } else { ?>
					<li><a href="index.php">Home</a></li>
					<?php } ?>
					<?php if($users->isUserLoggedIn()){ ?>
					<?php if($parts[count($parts) - 1] == 'dashboard.php') { ?>
					<li class="current"><a href="dashboard.php">Dashboard</a></li>
					<?php } else { ?>
					<li><a href="dashboard.php">Dashboard</a></li>
					<?php } ?>
					<?php } ?>
					<?php if(!$users->isUserLoggedIn()){ ?>
					<?php if($parts[count($parts) - 1] == 'register.php') { ?>
					<li class="current"><a href="register.php">Register</a></li>
					<?php } else { ?>
					<li><a href="register.php">Register</a></li>
					<?php } ?>
					<?php if($parts[count($parts) - 1] == 'login.php') { ?>
					<li class="current"><a href="login.php">Login</a></li>
					<?php } else { ?>
					<li><a href="login.php">Login</a></li>
					<?php } ?>
					<?php } ?>
					<?php if($users->isUserLoggedIn()){ ?>
					<li><a href="logout.php">Logout</a>
					<?php } ?>
				</ul>
			</div>
		</div>